Remove simplefs_file_system_type::next for linux 7.2 and up - #95
Merged
Conversation
In linux kernel 7.2, member next from file_system_type has been removed as filesystem lists were changed to RCU list. The linkage is now managed separately from file_system_type object. Remove member simplefs_file_system_type::next to match the new file_system_type structure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In linux kernel 7.2, member next from file_system_type has been removed as filesystem lists were changed to RCU list. The linkage is now managed separately from file_system_type object.
Remove member simplefs_file_system_type::next to match the new file_system_type structure.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dc651e25a6d289bc08cfde032427fa17
Summary by cubic
Make
simplefs_file_system_typecompatible with Linux kernel 7.2+ by removing.nextfor newer kernels and keeping it only for <=7.1 viaSIMPLEFS_LESS_EQUAL(7, 1, 0). This avoids build errors sincefile_system_type::nextwas removed when filesystem lists switched to RCU.Written for commit dad1620. Summary will update on new commits.